<!doctype html>
<html class="yunj-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>登录 - {:yunj_setting('sys.title');}</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" href="/favicon.ico" type="img/x-ico"/>
    {include file="$yunjInit" /}
    <link rel="stylesheet" href="/static/yunj/css/login.min.css?v={$Think.YUNJ_VERSION}">
    <style type="text/css">

        .layui-input-suffix{
            line-height: 50px;
            width: 50px;
        }

        .layui-input-suffix .layui-icon{
            font-size: 18px;
        }

        .captcha-box {
            display: flex;
        }

        .captcha-box img,
        .captcha-box .img-loading {
            height: 50px !important;
            width: 156px !important;
            min-width: 156px !important;
            margin-left: 10px !important;
            padding-left: 0 !important;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .captcha-box img{
            display: flex;
        }
        .captcha-box .img-loading{
            display: none;
        }

        .captcha-box.loading img{
            display: none;
        }
        .captcha-box.loading .img-loading{
            display: flex;
        }
    </style>
</head>
<body class="login-bg">
<div class="login layui-anim layui-anim-up">
    <div class="message">{:yunj_setting('sys.title');} - 登录</div>
    <div id="darkbannerwrap"></div>

    <form class="layui-form">
        <input type="text" id="username" value="{$demoUsername|default=''}" placeholder="账户" class="layui-input">
        <hr class="hr15">
        <input type="password" id="password" value="{$demoPassword|default=''}" placeholder="密码" class="layui-input" lay-affix="eye">
        <hr class="hr15">
        <div class="captcha-box loading" data-url="{$captchaUrl}">
            <input type="text" id="captcha_code" maxlength="4" placeholder="图形验证码" autocomplete="off" class="layui-input">
            <div class="img-loading"><i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i></div>
            <img id="captcha_img" src="" alt="captcha" class="layui-input" title="点击切换" data-hash="">
        </div>
        <hr class="hr15">
        <input type="checkbox" id="remember_me" title="记住密码" lay-skin="primary">
        <hr class="hr15">
        <input type="button" id="submit" value="登录" style="width:100%;" data-url="{$requestUrl}">
        <hr class="hr20">
    </form>
</div>
<script type="text/javascript" src="/static/yunj/js/theme.min.js?v={$Think.YUNJ_VERSION}" charset="utf-8"></script>
<script type="text/javascript" src="/static/yunj/js/login.min.js?v={$Think.YUNJ_VERSION}" charset="utf-8"></script>
</body>
</html>